<!DOCTYPE html>
<html style="overflow-x:auto;overflow-y:auto;">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JAVIS电商用户行为分析与可视化平台</title>
    <script src="/static/manager/jquery-1.8.3.min.js" type="text/javascript"></script>
    <link href="/static/manager/bootstrap.min.css" type="text/css" rel="stylesheet"/>
    <script src="/static/manager/bootstrap.min.js" type="text/javascript"></script>

    <script>
        var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="//hm.baidu.com/hm.js?82116c626a8d504a5c0675073362ef6f";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s);})();
    </script>
	<script type="text/javascript">
		$(document).ready(function() {
            $("#btnSubmit").click(function(){
                // 数据校验
                let orderId = $("#orderId").val();
                if(orderId == undefined || orderId == ""){
                    alert("请输入会员账号订单编号！");
                    return;
                }

                // 提交form表单
                $("#member_form").submit();
            });
		});
	</script>
	<style type="text/css">
		#table1{
			margin:1px;
			padding:1px;
		}
		#table1 tr td{
			margin:1px;
			padding:1px;
		}
	</style>

</head>
<body>

	<ul class="nav nav-tabs">
		<li class="active"><a href="/manager/addOrderDetail/">订单明细信息添加</a></li>
	</ul><br>
	{{msg}}
	<form id="member_form" class="form-horizontal" action="/manager/addOrderDetail/" method="post" novalidate="novalidate" enctype="multipart/form-data">
		<table class="table table-bordered table-condensed">
			<tbody><tr>
				<td><label class="control-label">订单编号：</label></td>
				<td>
					<input id="orderId" name="orderId" class="input-xlarge required" type="text" value="{{order.id}}" maxlength="100">
					<span class="help-inline"><font color="red">*</font> </span>
				</td>
				<td>
					<label class="control-label">商品名称：</label>
				</td>
				<td>
					<input id="productName" name="productName" class="input-xlarge " type="text" value="" maxlength="120">
				</td>
			</tr>
			<tr>
				<td><label class="control-label">商品售价：</label></td>
				<td><input id="salePrice" name="salePrice" class="input-xlarge" type="text" value="" maxlength="20"></td>
				<td><label class="control-label">折扣价格：</label></td>
				<td><input id="discountPrice" name="discountPrice" class="input-xlarge" type="text" value="" maxlength="20"></td>
			</tr>

			<tr>
				<td><label class="control-label">商品数量：</label></td>
				<td><input id="numbers" name="numbers" class="input-xlarge" type="text" value="" maxlength="20"></td>
				<td><label class="control-label">商品规格：</label></td>
				<td><input id="variant" name="variant" class="input-xlarge" type="text" value="" maxlength="20"></td>
			</tr>

			<tr>
				<td><label class="control-label">所属行业：</label></td>
				<td><input id="industry" name="industry" class="input-xlarge" type="text" value="" maxlength="20"></td>
				<td><label class="control-label">所属门店：</label></td>
				<td><input id="shopId" name="shopId" class="input-xlarge" type="text" value="" maxlength="20"></td>
			</tr>

            <tr>
				<td><label class="control-label">商品总价：</label></td>
				<td colspan="3">
					<input id="totalMoney" name="totalMoney" class="input-xlarge" type="text" value="" maxlength="100">
				</td>

			</tr>

			<tr>
				<td><label class="control-label">备注：</label></td>
				<td colspan="3"><textarea id="remark" name="remark" maxlength="512" class="input-xxlarge " rows="3"></textarea></td>
			</tr>
		</tbody></table>

		<div class="form-actions">
			<input id="btnSubmit" class="btn btn-primary" type="button" value="保 存">&nbsp;
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="document.location.href='/manager/orderList/'">
		</div>
	</form>

	<script type="text/javascript">//<!-- 无框架时，左上角显示菜单图标按钮。
		if(!(self.frameElement && self.frameElement.tagName=="IFRAME")){
			$("body").prepend("<i id=\"btnMenu\" class=\"icon-th-list\" style=\"cursor:pointer;float:right;margin:10px;\"></i><div id=\"menuContent\"></div>");
			$("#btnMenu").click(function(){
				top.$.jBox('get:/jeesite/a/sys/menu/treeselect;JSESSIONID=3baf732ded45486a8f110d13601a4c9b', {title:'选择菜单', buttons:{'关闭':true}, width:300, height: 350, top:10});
				//if ($("#menuContent").html()==""){$.get("/jeesite/a/sys/menu/treeselect", function(data){$("#menuContent").html(data);});}else{$("#menuContent").toggle(100);}
			});
		}//-->
	</script>

</body></html>